package com.galaxy.device.domain.vo;

import com.alibaba.excel.annotation.ExcelProperty;
import com.galaxy.common.mybatis.core.domain.BaseEntity;
import com.galaxy.device.domain.DeviceChannel;
import com.galaxy.device.domain.DeviceStatus;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 设备状态视图对象
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = DeviceStatus.class)
public class DeviceStatusVo extends BaseEntity {

    /**
     * 主键
     */
    private Long id;

    /**
     * 设备ID
     */
    private Long deviceId;

    /**
     * 设备编号
     */
    @ExcelProperty(value = "设备编号")
    private String deviceNo;

    /**
     * 设备名称
     */
    @ExcelProperty(value = "设备名称")
    private String deviceName;

    /**
     * 温度
     */
    @ExcelProperty(value = "温度")
    private Float temperature;

    /**
     * 湿度
     */
    @ExcelProperty(value = "湿度")
    private Float humidity;

    /**
     * 信号强度(0-100)
     */
    @ExcelProperty(value = "信号强度")
    private Integer signalStrength;

    /**
     * 信号强度描述
     */
    @ExcelProperty(value = "信号强度描述")
    private String signalStrengthDesc;

//    /**
//     * 货道总数量
//     */
//    @ExcelProperty(value = "货道总数量")
//    private Integer channelCount;

    /**
     * 最后在线时间
     */
    @ExcelProperty(value = "最后在线时间")
    private LocalDateTime lastOnlineTime;

    /**
     * 最后维护时间
     */
    @ExcelProperty(value = "最后维护时间")
    private LocalDateTime lastMaintenanceTime;

    /**
     * 维护周期(天)
     */
    @ExcelProperty(value = "维护周期")
    private Integer maintenanceCycle;

    /**
     * 下次维护时间
     */
    @ExcelProperty(value = "下次维护时间")
    private LocalDateTime nextMaintenanceTime;

    /**
     * 备注
     */
    @ExcelProperty(value = "备注")
    private String note;
}
